<div class="issue-heading">
  <div class="container">
    <%= @article.title %>
    <% if current_user && current_user == @article.user %>
      <%= link_to 'Destroy', article_path(@article), method: :delete, data: { confirm: 'Are you sure?' }, class: "btn btn-primary" %>
      <%= link_to 'edit', edit_article_path(@article), class: "btn btn-primary" %>
      <%= link_to 'logs', logs_article_path(@article), class: "btn btn-primary" %>
    <% end %>
  </div>
</div>
<div class="container">
  <div class="replies">
    <article class="reply clearfix">
      <div class="avatar">
        <%= image_tag @article.user.avatar, class: "image-circle" %>
      </div>
      <div class="body">
        <div class="heading">
          <span class="meta-data">
            <%= link_to @article.user.nickname, '#' %>
            <%= @article.created_at.strftime("%Y-%m-%d %H:%M") %>
          </span>
        </div>
        <%= markdown @article.content %>
      </div>
    </article>
  </div>
</div>
